package org.jeecg.modules.complain.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.complain.entity.ComplaintConfig;
import org.jeecg.modules.complain.mapper.ComplaintConfigMapper;
import org.jeecg.modules.complain.service.IComplaintConfigService;
import org.jeecg.modules.system.entity.SysDepartPosition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 配置
 * @Author: jeecg-boot
 * @Date:   2019-09-03
 * @Version: V1.0
 */
@Service
public class ComplaintConfigServiceImpl extends ServiceImpl<ComplaintConfigMapper, ComplaintConfig> implements IComplaintConfigService {

    @Autowired
    private ComplaintConfigMapper complaintConfigMapper;
    @Override
    public ComplaintConfig selectByDepartId(String departId) {
        return complaintConfigMapper.selectByDepartId(departId);
    }

    @Override
    public void deletByDepartId(String departId) {
        complaintConfigMapper.deletByDepartId(departId);
    }

    @Override
    public List<ComplaintConfig> selectAllComplainConfig(List<SysDepartPosition> sysDepartPositionList) {
        return complaintConfigMapper.selectAllComplainConfig(sysDepartPositionList);
    }

    @Override
    public String getDepartIdByProject(String projectId) {
        return complaintConfigMapper.getDepartIdByProject(projectId);
    }
}
